package com.syedu.cels.service;

import com.syedu.cels.entity.Vocabulary;
import com.syedu.cels.entity.Word;
import com.syedu.cels.util.PageBean;

import java.util.List;
import java.util.Map;

/**
 * 业务接口
 */
public interface BaseService {
    /**
     * Map集合分类单词
     */
    Map<Character, List<Word>> showWordsByMap() throws Exception;

    void showWordsMap(Map<Character, List<Word>> map);

    /**
     * 分页获取单词
     */
    PageBean<Word> findWordsByPage(List<Word> words, int pageNow, int pageSize) throws Exception;

    /**
     * 分页获取词汇
     */
    PageBean<Vocabulary> findVocabulariesByPage(int pageNow, int pageSize) throws Exception;

    void en2cn(boolean isNew) throws Exception;

}
